//
//  UIView+Cool.h
//  HX2Car
//
//  Created by Mudmen on 16/7/31.
//  Copyright © 2016年 Hx2car_mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Cool)

- (CGRect)getBoundsWithImage:(UIImage*)image;
- (UIViewController *)findViewController;
- (void)setBackgroundColors:(NSArray *)colorArray gradientType:(GradientColorType)gradientColorType;
- (void)setBackgroundColors:(NSArray *)colorArray cornerRadius:(CGFloat)cornerRadius gradientType:(GradientColorType)gradientColorType;
- (void)setBackgroundColors:(NSArray *)colorArray cornerRadius:(CGFloat)cornerRadius borderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor gradientType:(GradientColorType)gradientColorType;
- (void)setRoundingCorners:(UIRectCorner)corners cornerRadii:(CGSize)cornerRadii;

+ (void)drawDashLine:(UIView *)lineView lineLength:(int)lineLength lineSpacing:(int)lineSpacing lineColor:(UIColor *)lineColor;

@end
